@extends('layouts.admin')

@section('title')
<title>{{$title}}</title>
<meta name="Keywords" content="{{$title}}"/>
<meta name="Description" content="{{$title}}"/> 
@endsection

@section('login')
<li><a href="#">账号：{{$nickname}}</a></li>
<li>
	<a href="#">角色：
		@foreach($groups as $v)
		{{$v->name}},
		@endforeach
	</a>
</li>
@endsection

@section('navbar')
	<?php $num=0; ?>
	@foreach($cates as $v)
	<li @if($num==0)class="active"@endif>
	    <a href="{{url('admin/category/top')}}/{{$v->id}}" data-data="{_token:{{csrf_token()}}}" data-toggle="sidenav" data-id-key="targetid">{{$v->name}}</a>
	</li>
	<?php $num++ ?>
	@endforeach
@endsection

@section('content')
	<div class="bs-callout bs-callout-info">
        <h4>系统基本信息</h4>
    	<br>
        <ul>
            <li>
                <label>操作系统</label><span>{{PHP_OS}}</span>
            </li>
            <li>
                <label>运行环境</label><span>{{$_SERVER['SERVER_SOFTWARE']}}</span>
            </li>
            <li>
                <label>BJUI-版本</label><span>V1.31</span>
            </li>
            <li>
                <label>上传附件限制</label><span>{{get_cfg_var("upload_max_filesize")?get_cfg_var("upload_max_filesize"):"不允许上传附件"}}</span>
            </li>
            <li>
                <label>北京时间</label><span>{{date('Y-m-d H:i:s')}}</span>
            </li>
            <li>
                <label>服务器域名/IP</label><span>{{$_SERVER['SERVER_NAME']}} [ {{$_SERVER['SERVER_ADDR']}} ]</span>
            </li>
            <li>
                <label>Host</label><span>{{$_SERVER['SERVER_ADDR']}}</span>
            </li>
        </ul>
    </div>
@endsection